import {log} from './StudentList';

class Student{
    fullName : string;
    constructor(public firstName, public lastName){
        this.fullName = firstName + lastName;
    }
}

interface Person {
    firstName: string;
    lastName: string;
}

function greeter(person: Person): string {
    log();
    return 'Hello,' + person.firstName + person.lastName;
}

let user = new Student("三上", "优雅");

document.write(greeter(user));
